/*
 * @Author: taoyuqing
 * @Date: 2022-12-22 21:19:22
 * @Description: 横向菜单下面的按钮
 */
import 'package:flutter/material.dart';
import 'package:spree/utils/utils.dart';

class MenuGames extends StatelessWidget {
  const MenuGames({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    double imgW = (Utils().getScreenWidth(context) - 70) / 3;
    return Column(
      children: [
        Wrap(
          children: [
            Container(
              child: Column(
                children: [
                  Container(
                    width: imgW,
                    child: Image.asset('images/game1.png'),
                  ),
                  Container(
                    margin: EdgeInsets.only(top: 15),
                    width: imgW,
                    child: Image.asset('images/game2.png'),
                  ),
                ],
              ),
            ),
            Container(
              margin: EdgeInsets.only(left: 15),
              width: imgW * 2 + 12,
              child: Image.asset('images/game3.png'),
            )
          ],
        ),
       Container(
        margin: EdgeInsets.only(top:15),
        child:  Wrap(
          spacing: 15,
          children: [
            Container(
              width: imgW,
              child: Image.asset('images/game4.png'),
            ),
            Container(
              width: imgW,
              child: Image.asset('images/game5.png'),
            ),
            Container(
              width: imgW,
              child: Image.asset('images/game6.png'),
            ),
          ],
        ),
       )
      ],
    );
  }
}
